home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 1.iso / icons / solsys11.zip / BWCC.H < prev    next >
Text File  |  1993-03-09  |  4KB  |  153 lines

  1. // ObjectWindows - (C) Copyright 1991,1992 by Borland International
  2.  
  3. //
  4. // BWCC.H
  5. //
  6.  
  7. // Purpose:    Borland Windows Custom Controls  (BWCC)
  8.  
  9.  
  10. #if !defined(__BWCC_H)
  11. #define __BWCC_H
  12.  
  13. #if !defined(WORKSHOP_INVOKED)
  14.  
  15. #if !defined(__WINDOWS_H)
  16. #include <windows.h>
  17.  
  18. #endif
  19.  
  20. #endif
  21.  
  22. #define BWCCVERSION 0x0103   // version 1.03
  23.  
  24. // from version 1.02 onward BWCCGetversion returns a DWORD
  25. // The low-order word contains the version number
  26. // and the high-order word contains the locale
  27.  
  28. #define BWCC_LOCALE_US     1
  29. #define BWCC_LOCALE_JAPAN  2
  30.  
  31.  
  32. #define BORDLGCLASS "BorDlg"  // Our Custom Dialog class
  33. #define BORDLGPROP  "FB"      // Borland dialog window uses
  34.                               // this property for instance data
  35.                               // users should not use a property
  36.                               // with this name!
  37.  
  38. #define IDHELP    998         // Id of help button
  39.  
  40. // button style definitions:
  41.  
  42. // the Borland buttons use Windows button styles for button
  43. // type: i.e. BS_PUSHBUTTON/BS_DEFPUSHBUTTON
  44.  
  45.  
  46. #define BUTTON_CLASS  "BorBtn"  // Our Bitmap Buttons
  47. #define RADIO_CLASS "BorRadio"  // Our Radio Buttons
  48. #define CHECK_CLASS "BorCheck"  // Our Check Boxes
  49.  
  50. // styles
  51.  
  52. #define BBS_BITMAP       0x8000L  // this is a bitmap static
  53. #define BBS_PARENTNOTIFY 0x2000L  // Notify parent of TAB keys and focus
  54. #define BBS_OWNERDRAW    0x1000L  // let parent paint via WM_DRAWITEM
  55.  
  56. // messages
  57.  
  58. #define BBM_SETBITS       ( BM_SETSTYLE + 10)
  59.  
  60. // notifications
  61.  
  62. #define BBN_SETFOCUS      ( BN_DOUBLECLICKED + 10)
  63. #define BBN_SETFOCUSMOUSE ( BN_DOUBLECLICKED + 11)
  64. #define BBN_GOTATAB       ( BN_DOUBLECLICKED + 12)
  65. #define BBN_GOTABTAB      ( BN_DOUBLECLICKED + 13)
  66.  
  67. #define SHADE_CLASS "BorShade"
  68.  
  69. // The following is the name of the window message passed to
  70. // RegisterWindowMessage for CtlColor processing for group box shades:
  71. #define BWCC_CtlColor_Shade "BWCC_CtlColor_Shade"
  72.  
  73. #define BSS_GROUP     1L  // recessed group box
  74. #define BSS_HDIP      2L  // horizontal border
  75. #define BSS_VDIP      3L  // vertical border
  76. #define BSS_HBUMP     4L  // horizontal speed bump
  77. #define BSS_VBUMP     5L  // vertical speed bump
  78. #define BSS_RGROUP    6L  // raised group box
  79.  
  80. #define BSS_CAPTION   0x8000L // Set off the caption
  81. #define BSS_CTLCOLOR  0x4000L // Send WM_CTLCOLOR messages to parent of control
  82. #define BSS_NOPREFIX  0x2000L // & in caption does not underline following letter
  83. #define BSS_LEFT      0x0000L // Caption is left-justified
  84. #define BSS_CENTER    0x0100L // Caption is centered
  85. #define BSS_RIGHT     0x0200L // Caption is right-justified
  86. #define BSS_ALIGNMASK 0x0300L
  87.  
  88. #define STATIC_CLASS  "BorStatic" // Our statics
  89.  
  90. #if !defined(EXPORT)
  91. #define EXPORT _export
  92. #endif
  93.  
  94. #if defined( __cplusplus )
  95. extern "C" {
  96. #endif  /* __cplusplus */
  97.  
  98. extern HGLOBAL FAR EXPORT PASCAL SpecialLoadDialog
  99. (
  100.  
  101.   HINSTANCE   hResMod,
  102.   LPCSTR      lpResName,
  103.   DLGPROC     fpDlgProc
  104. );
  105.  
  106. extern HGLOBAL FAR EXPORT PASCAL MangleDialog
  107. (
  108.   HGLOBAL     hDlg,
  109.   HINSTANCE   hResources,
  110.   DLGPROC     fpDialogProc
  111. );
  112.  
  113. extern LRESULT FAR EXPORT PASCAL BWCCDefDlgProc
  114. (
  115.   HWND        hWnd,
  116.   UINT        message,
  117.   WPARAM      wParam,
  118.   LPARAM      lParam
  119. );
  120. extern LRESULT FAR EXPORT PASCAL BWCCDefWindowProc
  121. (
  122.   HWND        hWnd,
  123.   UINT        message,
  124.   WPARAM      wParam,
  125.   LPARAM      lParam
  126. );
  127.  
  128. extern LRESULT FAR EXPORT PASCAL BWCCDefMDIChildProc
  129. (
  130.   HWND        hWnd,
  131.   UINT        message,
  132.   WPARAM      wParam,
  133.   LPARAM      lParam
  134. );
  135.  
  136. extern int FAR EXPORT PASCAL BWCCMessageBox
  137. (
  138.   HWND        hWndParent,
  139.   LPCSTR      lpText,
  140.   LPCSTR      lpCaption,
  141.   UINT        wType
  142. );
  143.  
  144. extern HBRUSH FAR EXPORT PASCAL BWCCGetPattern( void );
  145. extern DWORD FAR EXPORT PASCAL BWCCGetVersion( void);
  146.  
  147. #if defined( __cplusplus )
  148. }
  149. #endif  /* __cplusplus */
  150.  
  151. #endif  /* __BWCC_H */
  152.  
  153.